﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_BasicInformation : IBasicInformation
    {
        public void Add(BasicInformation obj)
        {
            CreateFactory.GetBasicInformation().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetBasicInformation().Delete(id);
        }

        public BasicInformation FindById(int id)
        {
            return CreateFactory.GetBasicInformation().FindById(id);
        }

        public BasicInform_and_BasicInformCus FindByTemplateID(int id)
        {
            return CreateFactory.GetBasicInformation().FindByTemplateID(id);
        }

        public List<BasicInformation> GetAll()
        {
            return CreateFactory.GetBasicInformation().GetAll();
        }

        public void Update(int id, BasicInformation obj)
        {
            CreateFactory.GetBasicInformation().Update(id,obj);
        }
    }
}
